import "reflect-metadata";
import * as dotenv from "dotenv";
dotenv.config();
import { NestFactory } from "@nestjs/core";
import { AppModule } from "./modules/app.module";
async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  app.enableCors({ origin: true });
  await app.listen(process.env.PORT || 3000);
  console.log("Backend listening on", process.env.PORT || 3000);
}
bootstrap().catch((err) => {
  console.error(err);
  process.exit(1);
});
